﻿using XRM.Security.DataAccess.Context;
using XRM.Security.DataAccess.Models;

namespace XRM.Security.DataAccess.Repositories.Impl
{
    public class DepartmentRepository : BaseRepository<Department>
    {
        public DepartmentRepository(IDbContext dbContext) : base(dbContext)
        {}

        public void DeleteAddress(DepartmentAddress address)
        {
            ContextDb.Set<DepartmentAddress>().Remove(address);
            ContextDb.SaveChanges();
        }
    }
}
